/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package praktikum_1.percobaan_2;

/**
 *
 * @author Liem
 */
public class Benda {
    String nama = "tanpa nama";
    int jumlahSudut = 0;
    Benda(){
        
    }
    
    Benda(String nama){
        this.nama = nama;
    }
    
    Benda(String nama, int jumlahSudut){
        this.nama = nama;
        this.jumlahSudut = jumlahSudut;
    }
    
    public void info(){
        System.out.println("Nama benda :" + this.nama);
        System.out.println("Jumlah sudut :" + this.jumlahSudut);
    }
}
